package com.neusoft.nep.SystemAdminstrator.Common;

import javafx.scene.control.Alert;

public class AlertUtills {
    public void Showdialog(String title,String Headtitle,String context){
        Alert alert = new Alert(Alert.AlertType.INFORMATION);
        alert.setTitle(title);
        alert.setHeaderText(Headtitle);
        alert.setContentText(context);
        alert.showAndWait();
    }
    public void ShowErrorDialog(String title,String Headtitle,String context){
        Alert alert = new Alert(Alert.AlertType.ERROR);
        alert.setTitle(title);
        alert.setHeaderText(Headtitle);
        alert.setContentText(context);
        alert.showAndWait();
    }
}
